package de.justphil.tcg.tcgserver.commons.config;

public class RestConfig {
	public static final String ECLIPSE_LINK_PERSISTENCE_UNIT	= "tcg";
	
	
	public static final String HTTP_AUTHENTICATION_METHOD_BASIC	= "Basic";
	public static final String WWW_AUTHENTICATE_REALM			= "TCG User Zone";
	
	public static final String REQ_HEADER_ACCEPT_LANGUAGE		= "Accept-Language";
	public static final String REQ_HEADER_AUTHORIZATION 		= "Authorization";
	public static final String RES_HEADER_WWW_AUTHENTICATE		= "WWW-Authenticate";
	
	public static final int NEW_GAME_POLL_INTERVAL				= 2;
	
	public static final int NUM_OF_FREEBIE_CIS					= 5;
	public static final double FREEBIE_SOUTH_BOUNDARY_LAT		= 50.94198854689985;
	public static final double FREEBIE_NORTH_BOUNDARY_LAT		= 51.66233415804707;
	public static final double FREEBIE_WEST_BOUNDARY_LON		= 6.2127685546875;
	public static final double FREEBIE_EAST_BOUNDARY_LON		= 7.71240234375;
	
	public static final String FREEBIE_CARD_PRIVATE_KEY			= Config.BAZZINGA_MASTER_PASSWORD;
	public static final double FREEBIE_RADIUS					= 0.025;		// km
	public static final double EARTH_RADIUS						= 6371.0; 		// km
	public static final double BEARING_NORTH					= 0.0;
	public static final double BEARING_WEST						= -90.0;
	public static final double BEARING_SOUTH					= 180.0;
	public static final double BEARING_EAST						= 90.0;
	public static final String GEOLOCATION_DEFAULT_VALUE		= "1000.0";
	public static final String GEOLOCATION_DEFAULT_RADIUS		= "10.0";		// km
	public static final double GEOLOCATION_MAX_RADIUS			= 50.0;			// km
	
	public static final String IMAGES_DIR						= "images";
	public static final String CARDS_DIR						= "cards";
	public static final String PROPERTIES_DIR					= "properties";
	public static final String IMAGE_FILE_ENDING				= ".png";
	
	public static final int DECK_NAME_MIN_CHARS					= 2;
	public static final int DECK_NAME_MAX_CHARS					= 100;
	public static final int DECK_MIN_CIS						= 6;
	public static final int DECK_MAX_CIS						= 100;
}
